import React,{Suspense} from 'react';
import ReactDOM from 'react-dom/client';
import { HashRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import { ThemeProvider } from 'styled-components';

import 'normalize.css'
import App from './App';
import 'antd/dist/antd.less'; // or 'antd/dist/antd.less'
import './assets/css/index.less'
import store from './store';
import theme from './assets/theme';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Suspense>
    <Provider store={store}>
      <ThemeProvider theme={theme}>
        <HashRouter>
          {/* <React.StrictMode> */}
            <App />
          {/* </React.StrictMode> */}
        </HashRouter> 
      </ThemeProvider>
    </Provider>
  </Suspense>

);

